// 'use strict';
// exports.main = async (event, context) => {
// 	//event为客户端上传的参数
// 	console.log('event : ', event)
	
// 	//返回数据给客户端
// 	return event
// };

// 简单的使用示例
'use strict';
const uniPush = uniCloud.getPushManager({appId:"__UNI__6DA4046"}) //注意这里需要传入你的应用appId



exports.main = async (event, context) => {
	const push_clientid = uni.getStorageSync('push_clientid');
	return await uniPush.sendMessage({
		"push_clientid": push_clientid, 	//填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
		"title": "通知栏显示的标题",	
		"content": "通知栏显示的内容",
		"payload": {
			"text":"体验一下uni-push2.0"
		}
	})
};